package cn.kgc.spring.day05.servlet;

import cn.kgc.spring.day05.entity.User;
import cn.kgc.spring.day05.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/11/8
 * @description
 */
@Controller
public class UserServlet {

    @Autowired
    private UserService userService;

    public List<User> userList(){

       return userService.userList();
    }



}
